package cn.shujuhai.cms.controller.infoParam;

import cn.shujuhai.cms.domain.ArticleParam;
import cn.shujuhai.cms.service.ArticleParamService;
import cn.shujuhai.common.aop.SysLog;
import cn.shujuhai.common.pluging.data.ResultVo;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: NiuYaHu
 * @Date: 2025/8/8 14:52
 * @Description:
 **/
@RestController
@RequestMapping("/cms/articleParam")
@RequiredArgsConstructor
public class ArticleParamController {
    private final ArticleParamService articleParamService;

    /**
     * 查询文章结构列表
     *
     * @return 查询的文章结构列表
     */
    @SysLog(value = "文章结构列表查询", operationType = "查询", module = "文章模块")
    @GetMapping("/list")
    public ResultVo<?> getList(@RequestParam Long articleId) {
        return this.articleParamService.getList(articleId);
    }
}
